home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
health
/
module1.bas
< prev
next >
Wrap
BASIC Source File
|
1993-07-22
|
39KB
|
1,692 lines
Sub bounce (picsrc As Form, picdest As Control)
picsrc.ScaleMode = PIXEL
picdest.ScaleMode = PIXEL
hDestDC% = picdest.hDC
X% = 0: Y% = 0
nWidth% = picdest.ScaleWidth
nHeight% = picdest.ScaleHeight
hSrcDC% = picsrc.hDC
xsrc% = 0: ysrc% = summary.HEdit1.Top
dwRop& = &HCC0020
SUC% = BitBlt(hDestDC%, X%, Y%, nWidth%, nHeight%, hSrcDC%, xsrc%, ysrc%, dwRop&)
picsrc.ScaleMode = TWIPS
picdest.ScaleMode = TWIPS
End Sub
Sub bounce2 (picsrc As Control, picdest As Control)
picsrc.ScaleMode = PIXEL
picdest.ScaleMode = PIXEL
hDestDC% = picdest.hDC
X% = 0: Y% = 0
nWidth% = picdest.ScaleWidth
nHeight% = picdest.ScaleHeight
hSrcDC% = picsrc.hDC
xsrc% = 0: ysrc% = 0
dwRop& = &HCC0020
SUC% = BitBlt(hDestDC%, X%, Y%, nWidth%, nHeight%, hSrcDC%, xsrc%, ysrc%, dwRop&)
picsrc.ScaleMode = TWIPS
picdest.ScaleMode = TWIPS
End Sub
Sub clearoutine ()
screen.MousePointer = 11
LSet temprecord = clearrecord
For n = 0 To 2
assess1.Option3D1(n).ForeColor = &HFF0000
Next n
For n = 0 To 5
assess1.Option3D4(n).ForeColor = &HFF0000
Next n
For n = 0 To 4
assess1.Option3D10(n).ForeColor = &HFF0000
Next n
assess1.Label5.ForeColor = &HFF0000
assess1.BEdit2.Text = ""
assess1.HEdit2.Text = ""
idform.BEdit1.Text = ""
idform.HEdit1.Text = ""
idform.BEdit1.Visible = -1
idform.BEdit1.Text = " - - "
idform.HEdit1.Visible = 0
idform.HEdit1.Enabled = -1
idform.AniButton4.Value = 1
idform.AniButton3(2).Value = 1
idform.Option3D1(0).Value = 0
idform.Option3D1(1).Value = 0
idform.Check3D1.Value = 0
picloc = 0
assess1.Option3D1(0).Value = 0
assess1.Option3D1(1).Value = 0
assess1.Option3D1(2).Value = 0
assess1.Option3D4(0).Value = 0
assess1.Option3D4(1).Value = 0
assess1.Option3D4(2).Value = 0
assess1.Option3D4(3).Value = 0
assess1.Option3D4(4).Value = 0
assess1.Option3D4(5).Value = 0
assess1.Option3D10(0).Value = 0
assess1.Option3D10(1).Value = 0
assess1.Option3D10(2).Value = 0
assess1.Option3D10(3).Value = 0
assess1.Option3D10(4).Value = 0
assess1.Check3D3(0).Value = 0
assess1.Check3D3(1).Value = 0
assess1.Check3D3(2).Value = 0
assess1.Check3D3(3).Value = 0
assess1.Check3D3(4).Value = 0
assess1.Check3D3(5).Value = 0
assess1.Check3D3(6).Value = 0
assess1.Check3D3(7).Value = 0
assess1.Check3D3(8).Value = 0
assess1.Check3D1.Value = 0
assess1.Check3D2.Value = 0
assess2.BEdit1(0).Text = ""
assess2.BEdit1(1).Text = ""
assess2.BEdit2(0).Text = ""
assess2.BEdit2(1).Text = ""
assess2.hedit1(0).Text = ""
assess2.hedit1(1).Text = ""
assess2.hedit2(0).Text = ""
assess2.hedit2(1).Text = ""
assess2.HEdit3.Text = ""
medhist.Check3D1(0).Value = 0
medhist.Check3D1(1).Value = 0
medhist.Check3D1(2).Value = 0
medhist.Check3D1(3).Value = 0
medhist.Check3D1(4).Value = 0
medhist.Check3D1(5).Value = 0
medhist.Check3D1(6).Value = 0
medhist.Check3D1(7).Value = 0
medhist.Check3D2(0).Value = 0
medhist.Check3D2(1).Value = 0
medhist.Check3D2(2).Value = 0
medhist.Check3D2(3).Value = 0
medhist.Check3D2(4).Value = 0
medhist.Check3D2(5).Value = 0
medhist.Check3D2(6).Value = 0
medhist.Check3D2(7).Value = 0
medhist.Check3D3(0).Value = 0
medhist.Check3D3(1).Value = 0
medhist.Check3D3(2).Value = 0
medhist.Check3D3(3).Value = 0
medhist.Check3D3(4).Value = 0
medhist.Check3D3(5).Value = 0
medhist.Check3D3(6).Value = 0
medhist.Check3D3(7).Value = 0
medhist.Check3D4(0).Value = 0
medhist.Check3D4(1).Value = 0
medhist.Check3D4(2).Value = 0
medhist.Check3D4(3).Value = 0
medhist.Check3D4(4).Value = 0
medhist.Check3D4(5).Value = 0
medhist.Check3D4(6).Value = 0
medhist.Check3D4(7).Value = 0
Do While MDIChild1A.List1(1).ListCount
MDIChild1A.List1(1).RemoveItem 0
Loop
Do While MDIChild1B.List2(1).ListCount
MDIChild1B.List2(1).RemoveItem 0
Loop
Do While MDIChild1C.List3(1).ListCount
MDIChild1C.List3(1).RemoveItem 0
Loop
Do While summary.List2.ListCount
summary.List2.RemoveItem 0
Loop
screen.MousePointer = 0
End Sub
Sub dispose ()
exitsave.Show 1
If admit.Picture1.Tag = "new" Then
admit.Picture1.Cls
admit.Picture1.AutoRedraw = -1
admit.Picture1.Scale (0, 0)-(3, 4)
admit.Picture1.CurrentX = .8
admit.Picture1.CurrentY = 1.2
admit.Picture1.Print "CLICK"
admit.Picture1.CurrentX = 1
admit.Picture1.CurrentY = 2
admit.Picture1.Print " TO"
admit.Picture1.CurrentX = .8
admit.Picture1.CurrentY = 2.8
admit.Picture1.Print "BEGIN"
clearoutine
admit.Show
End If
End Sub
Sub editswap (thebedit As Control, thehedit As Control, process As Integer)
Select Case process
Case 1
For n = 1 To Len(thebedit.Text)
a$ = a$ + Mid$(thebedit.Text, n, 1) + Chr$(32)
Next n
thehedit.Text = Chr$(32) + a$
Case 2
For n = 1 To Len(thehedit.Text)
If Mid$(thehedit.Text, n, 1) <> " " Then
a$ = a$ + Mid$(thehedit.Text, n, 1)
End If
Next n
thebedit.Text = a$
End Select
End Sub
Sub Endroutine ()
Unload admit
Unload assess1
Unload assess2
Unload assess3
Unload idform
Unload medhist
Unload MDIMForm
Unload summary
End 'redundant but...
End Sub
Sub fillfields ()
nofocuscalls = -1
assess1.BEdit1.Text = patrecord.dayt
assess1.BEdit2.Text = patrecord.tyme
assess1.Option3D1(0).Value = patrecord.theoption.opt1
assess1.Option3D1(1).Value = patrecord.theoption.opt2
assess1.Option3D1(2).Value = patrecord.theoption.opt3
assess1.Option3D4(0).Value = patrecord.theoption.opt4
assess1.Option3D4(1).Value = patrecord.theoption.opt5
assess1.Option3D4(2).Value = patrecord.theoption.opt6
assess1.Option3D4(3).Value = patrecord.theoption.opt7
assess1.Option3D4(4).Value = patrecord.theoption.opt8
assess1.Option3D4(5).Value = patrecord.theoption.opt9
assess1.Option3D10(0).Value = patrecord.theoption.opt10
assess1.Option3D10(1).Value = patrecord.theoption.opt11
assess1.Option3D10(2).Value = patrecord.theoption.opt11
assess1.Option3D10(3).Value = patrecord.theoption.opt13
assess1.Option3D10(4).Value = patrecord.theoption.opt14
assess1.Check3D3(0).Value = patrecord.chicks.chek1
assess1.Check3D3(1).Value = patrecord.chicks.chek2
assess1.Check3D3(2).Value = patrecord.chicks.chek3
assess1.Check3D3(3).Value = patrecord.chicks.chek4
assess1.Check3D3(4).Value = patrecord.chicks.chek5
assess1.Check3D3(5).Value = patrecord.chicks.chek6
assess1.Check3D3(6).Value = patrecord.chicks.chek7
assess1.Check3D3(7).Value = patrecord.chicks.chek8
assess1.Check3D3(8).Value = patrecord.chicks.chek9
assess1.Check3D1.Value = patrecord.chk1
assess1.Check3D2.Value = patrecord.chk2
assess2.BEdit1(0).Text = patrecord.name
assess2.BEdit1(1).Text = patrecord.relation
assess2.BEdit2(0).Text = patrecord.home
assess2.BEdit2(1).Text = patrecord.work
assess2.hedit1(0).Text = patrecord.name
assess2.hedit1(1).Text = patrecord.relation
assess2.hedit2(0).Text = patrecord.home
assess2.hedit2(1).Text = patrecord.work
assess2.HEdit3.Text = patrecord.hed1
medhist.Check3D1(0).Value = patrecord.d1.shek1
medhist.Check3D1(1).Value = patrecord.d1.shek2
medhist.Check3D1(2).Value = patrecord.d1.shek3
medhist.Check3D1(3).Value = patrecord.d1.shek4
medhist.Check3D1(4).Value = patrecord.d1.shek5
medhist.Check3D1(5).Value = patrecord.d1.shek6
medhist.Check3D1(6).Value = patrecord.d1.shek7
medhist.Check3D1(7).Value = patrecord.d1.shek8
medhist.Check3D2(0).Value = patrecord.d2.shek1
medhist.Check3D2(1).Value = patrecord.d2.shek2
medhist.Check3D2(2).Value = patrecord.d2.shek3
medhist.Check3D2(3).Value = patrecord.d2.shek4
medhist.Check3D2(4).Value = patrecord.d2.shek5
medhist.Check3D2(5).Value = patrecord.d2.shek6
medhist.Check3D2(6).Value = patrecord.d2.shek7
medhist.Check3D2(7).Value = patrecord.d2.shek8
medhist.Check3D3(0).Value = patrecord.d3.shek1
medhist.Check3D3(1).Value = patrecord.d3.shek2
medhist.Check3D3(2).Value = patrecord.d3.shek3
medhist.Check3D3(3).Value = patrecord.d3.shek4
medhist.Check3D3(4).Value = patrecord.d3.shek5
medhist.Check3D3(5).Value = patrecord.d3.shek6
medhist.Check3D3(6).Value = patrecord.d3.shek7
medhist.Check3D3(7).Value = patrecord.d3.shek8
medhist.Check3D4(0).Value = patre